---
title: Badge
description: Displays a badge or a component that looks like a badge.
shadcnDocsLink: https://ui.shadcn.com/docs/components/badge
---

<ComponentPreview component="badge">
  ```tsx file=<rootDir>/src/examples/ui/badge/index.tsx
  ```
</ComponentPreview>

## Installation

<Installation component="badge">
  ```tsx file=<rootDir>/src/components/ui/badge.tsx
  ```
</Installation>

## Usage

```ts
import { Badge } from '@/components/ui/badge'
```

```tsx
<Badge>Badge</Badge>
```

## Examples

### Default

<ComponentPreview component="badge" example="default">
  ```tsx file=<rootDir>/src/examples/ui/badge/index.tsx
  ```
</ComponentPreview>

### Neutral

<ComponentPreview component="badge" example="neutral">
  ```tsx file=<rootDir>/src/examples/ui/badge/neutral.tsx
  ```
</ComponentPreview>

### With Icon

<ComponentPreview component="badge" example="with-icon">
  ```tsx file=<rootDir>/src/examples/ui/badge/with-icon.tsx
  ```
</ComponentPreview>